<template>
  <div class="stat-widget">
    <div class="value">{{ value }}</div>
    <div class="label">{{ label }}</div>
  </div>
</template>

<script setup lang="ts">
defineProps<{
  value: string | number;
  label: string;
}>();
</script>

<style scoped>
.stat-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1rem;
  text-align: center;
  border-radius: 8px;
  background-color: #1f2937; /* Dark background */
  color: #ffffff; /* White text */
  border: 1px solid #4b5563; /* Subtle border */
}

.value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.label {
  font-size: 1rem;
  color: #9ca3af; /* Lighter text for the label */
  margin-top: 0.5rem;
}
</style> 